package com.jacobson.huobi.di.modules

import com.jacobson.core.di.annotation.ActivityScope
import com.jacobson.huobi.mvp.contract.HomeContract
import com.jacobson.huobi.mvp.model.HomeModel
import com.jacobson.huobi.mvp.presenter.HomePresenter
import dagger.Module
import dagger.Provides

@Module
class HomeFragmentModule(
    private val view: HomeContract.View
) {

    @Provides
    @ActivityScope
    fun provideView() = view

    @ActivityScope
    @Provides
    fun providePresenter(presenter: HomePresenter): HomeContract.Presenter = presenter

    @ActivityScope
    @Provides
    fun provideModel(model: HomeModel): HomeContract.Model = model
}